import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:share_fit/app/components/back_btn_icon.dart';
import 'package:share_fit/app/helper/ext/tr_ext.dart';
import 'package:share_fit/generated/locales.g.dart';

import 'logic.dart';

class FindBraceletPage extends StatelessWidget {
  FindBraceletPage({Key? key}) : super(key: key);

  final logic = Get.find<FindBraceletLogic>();
  final state = Get.find<FindBraceletLogic>().state;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: BackBtnIcon(onTap: () => Get.back()),
        centerTitle: true,
        title: Text(LocaleKeys.settings_find_bracelet.ts, style: TextStyle(fontSize: 54.sp)),
      ),
      body: Padding(
        padding: EdgeInsets.only(top: 120.h, left: 43.w, right: 43.w),
        child: Container(
          padding: EdgeInsets.symmetric(horizontal: 57.w),
          alignment: Alignment.center,
          constraints: BoxConstraints.expand(height: 588.h),
          decoration: BoxDecoration(
            color: Colors.red.withOpacity(0.15),
            borderRadius: BorderRadius.circular(60.r),
          ),
          child: Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Expanded(
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.start,
                  children: [
                    Container(
                      width: 219.w,
                      height: 219.w,
                      child: const CircleAvatar(
                        radius: 100,
                        backgroundColor: Colors.red,
                      ),
                    ),
                    SizedBox(width: 53.w),
                    Text('选择设备', style: TextStyle(fontSize: 54.sp)),
                  ],
                ),
              ),
              const Icon(
                Icons.arrow_forward_ios,
              ),
            ],
          ),
          // child: ListTile(
          //   leading: SizedBox(height: 319.h, width: 319.w, child: CircleAvatar(
          //     radius: 100,
          //     backgroundColor: Colors.red,
          //   ),),
          //   title:
          //   trailing: const Icon(
          //     Icons.arrow_forward_ios,
          //   ),
          // ),
        ),
      ),
    );
  }
}
